﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using networkTestUtilities;

namespace networkTestApp
{
    class Program
    {
        static void Main(string[] args)
        {

            DataPusher d = new DataPusher();

            Generator g = new Generator();
            g.numSensors = 2;
            g.target = d;
            g.waitPeriod = 10000;

            d.accessKey = 12345;
            d.contMode = false;
            d.deviceKey = 54321;
            d.host = "localhost";
            d.port = 7777;
            d.limitSize = 50;
            
            
            d.start();

            for (int i = 0; i < 10000; i++)
                g.pulse();

            //g.start();
            while (true)
            {
                Console.ReadLine();
                g.pulse();
            }

        }
    }
}
